package com.brillilab.dao.mapper.experiments;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brillilab.domain.po.experiments.ExperimentStepReagent;
import com.brillilab.domain.vo.experiments.ExperimentStepReagentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 实验步骤关联的试剂成分 Mapper 接口
 * </p>
 *
 * @author WuMenghao
 * @since 2019-04-22
 */
public interface ExperimentStepReagentMapper extends BaseMapper<ExperimentStepReagent> {

    int insertBatch(@Param("reagents") List<ExperimentStepReagent> experimentStepReagents);

    List<ExperimentStepReagentVo> selectExperimentStepReagentVoList(@Param("experimentId") Long experimentId,@Param("phaseId") Long phaseId,@Param("stepId") Long stepId);

    int updateBatch(@Param("reagents") List<ExperimentStepReagent> reagents);
}
